from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split
import pandas as pd

target = pd.read_csv('./target.csv').iloc[:,2:]
Xdata = pd.read_csv('./data_jsee.csv').iloc[:,1:]

Xtrain,Xtest,Ytrain,Ytest = train_test_split(Xdata,target,test_size=0.25)


rf = RandomForestRegressor(n_estimators=20)
rf.fit(Xtrain,Ytrain)
score = rf.score(Xtest,Ytest)
print(score)
print(rf.feature_importances_)